package com.ssm.service;

import com.ssm.dao.TangMapper;
import com.ssm.pojo.Tang;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TangServiceImpl implements TangService{

    @Autowired
    private TangMapper tangMapper;

    public int add(Map<String, Object> map) {
        return tangMapper.add(map);
    }

    public int delete(int id) {
        return tangMapper.delete(id);
    }

    public int update(Map<String, Object> map) {
        return tangMapper.update(map);
    }

    public List<Tang> selectAll() {
        return tangMapper.selectAll();
    }
}
